package com.shopx.auth.DTO;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * TODO
 *
 * @author lituo
 * @date 2021/12/10 1:15 PM
 */
@Data
public class RegDTO {
  @NotNull(message = "请填写公司名称")
  @NotEmpty(message = "请填写公司名称")
  @Length(min = 4,max = 32,message = "公司名称至少输入2到32个字符")
  private String cpName;
  @NotNull(message = "请填写电话号码")
  @NotEmpty(message = "请填写电话号码")
  private String loginName;
  @NotNull(message = "请填写密码")
  @NotEmpty(message = "请填写密码")
  @Length(min = 4,max = 16,message = "密码需要输入4到16个字符")
  private String password;
  @NotNull(message = "请填写密码")
  @NotEmpty(message = "请填写密码")
  @Length(min = 4,max = 16,message = "密码需要输入4到16个字符")
  private String password2;
  @NotNull(message = "请填写验证码")
  @NotEmpty(message = "请填写验证码")
  private String randomCode;
  private String codeKey;
}
